package day7;

import org.junit.Test;

public class Demo {
	@Test
	public void test1() {
		
		Student student = new Student();
		//实例变量 实例方法必须new出对象才能访问
		student.print();
		student.id = 32;
		//静态变量既可以通过对象(student.country) 调用，也可以通过类名.(Student.country)调用
		System.out.println(student.country);
		System.out.println(Student.country);
		
	}
}
